// Domien Nowicki
#include "QtPusherActivateAnimation.h"

QtPusherActivateAnimation::QtPusherActivateAnimation(): pusher(0)
{
}

QtPusherActivateAnimation::QtPusherActivateAnimation(const QtPusherActivateAnimation& rhs): QtAnimationCommand(rhs), pusher(rhs.pusher)
{
}

QtPusherActivateAnimation::~QtPusherActivateAnimation()
{
}

void QtPusherActivateAnimation::SetPusher(QtPusherSprite* receiver)
{
	pusher = receiver;
}

void QtPusherActivateAnimation::Execute()
{
	if (pusher)
	{
		pusher->Push();
	}
}

QtAnimationCommand* QtPusherActivateAnimation::Clone() const
{
	return new QtPusherActivateAnimation(*this);
}
